package part2;

import java.io.Serializable;

public class Data implements Serializable{
	private int x;
	private String y;

	public Data(int x_in, String y_in) {
		x = x_in;
		y = y_in;
	}

	public int getX() {
		return x;
	}

	public String getY() {
		return y;
	}

	public String toString(){
		return "[ " + x + ", " + y +" ]";
	}
	public boolean equals(Data other) {
		if ((x == other.x) && (y.equals(other.y)))
			return true;
		return false;
	}
}
